import request from '@/utils/request'

// 查询药学监护记录列表
export function listPharmaceuticalCare(query) {
  return request({
    url: '/workstation/pharmaceuticalCare/list',
    method: 'get',
    params: query
  })
}

// 查询药学监护记录详细
export function getPharmaceuticalCare(id) {
  return request({
    url: '/workstation/pharmaceuticalCare/' + id,
    method: 'get'
  })
}

// 新增药学监护记录
export function addPharmaceuticalCare(data) {
  return request({
    url: '/workstation/pharmaceuticalCare',
    method: 'post',
    data: data
  })
}

// 修改药学监护记录
export function updatePharmaceuticalCare(data) {
  return request({
    url: '/workstation/pharmaceuticalCare',
    method: 'put',
    data: data
  })
}

// 删除药学监护记录
export function delPharmaceuticalCare(id) {
  return request({
    url: '/workstation/pharmaceuticalCare/' + id,
    method: 'delete'
  })
}

// 单独删除药学监护记录的每一天
export function removePharmaceuticalCare(id) {
  return request({
    url: '/workstation/pharmaceuticalCare/remove/' + id,
    method: 'get'
  })
}
